package br.com.upis.sispat.ds;

import java.sql.Connection;
import java.sql.SQLException;

import javax.annotation.Resource;
import javax.sql.DataSource;

public class DataSourceMySQL {
	
	@Resource(name="jdbc/mysql")
	private DataSource dataSource;

	public DataSourceMySQL() {
	}
	
	public Connection getConnection() throws SQLException{
		return dataSource.getConnection();
	}

}
